#include<iostream>
#include<vector>
using namespace std;

int main(){
    char st[] = "abcdefghij";
    vector<char>a(st,st+10);
    cout << "capacity = " << a.capacity() << ",size = " << a.size();
    cout << endl;
    a.pop_back();
    a.push_back('W');
    a.push_back('P');
    cout << "capacity = " << a.capacity() << ",size = " << a.size();
    cout << endl;
    copy(a.begin(),a.end(),ostream_iterator<char>(cout," "));
    cout << endl;
    a.clear();
    cout << a.empty() << endl;
    return 0;
}
